//
//  JYJMusicOperation.h
//  HappyListen
//
//  Created by 冀永金 on 16/9/19.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import <Foundation/Foundation.h>

@class JYJProgramModel;
@interface NSURLSessionTask (MusciModel)
// 为了更方便去获取，而不需要遍历，采用扩展的方式，可直接提取，提高效率
@property (nonatomic, weak)  JYJProgramModel *jyj_programModel;
@end
@interface JYJMusicOperation : NSOperation
- (instancetype)initWithModel:( JYJProgramModel *)model session:(NSURLSession *)session;
@property (nonatomic, weak)  JYJProgramModel *model;
@property (nonatomic, strong , readonly) NSURLSessionDownloadTask *downloadTask;

//使暂停
- (void)suspend;
// 继续
- (void)resume;
// 下载完成
- (void)downloadFinished;
@end
